package org.openfidias.jdbase.locale;

import java.io.UnsupportedEncodingException;

/**
 *
 * @author atila
 */
public final class Encoding {

   public static String toUtf8(String value) throws UnsupportedEncodingException {
      String utf8 = null;
      if (value != null && !value.equals("")) {
         byte[] iso = value.getBytes("UTF-8");
         utf8 = new String(iso, "ISO-8859-1");
      } else {
         utf8 = value;
      }
      return utf8;
   }
}
